from rest_framework.pagination import PageNumberPagination

class myPageNumberPagination(PageNumberPagination):

    # page_size = 3
    page_query_param = 'pagenum'
    page_size_query_param = 'pagesize'
    max_page_size = 20